<ol class="breadcrumb" style="margin: 10px auto; background-color: white;">
    <li><a href="<?php echo base_url(), $category['slug'];?>"><?php echo $category['categoryname'];?></a></li>
    <?php foreach($subs as $k=>$v) {
        if($v['id'] == $sub['id']) {
            ?>
            <li class="<?php if($v['id'] == $sub['id']) echo 'active';?>" ><?php echo $v['categoryname'];?></li>
            <?php
        } else {
            ?>
            <li><a href="<?php echo base_url(), $category['slug'], '/', $v['slug'];?>"><?php echo $v['categoryname'];?></a></li>
            <?php   
        }
    ?>
    <?php }?>
</ol>

<?php if(count($data)) { ?>
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title"><?php echo $sub['categoryname'];?></h3>
        </div>
        <div class="panel-body">
            <?php foreach($data as $k=>$v) { ?>
            <div>
                <a href="<?php echo base_url(), $category['slug'], '/', $sub['slug'], '/', $v['slug'];?>"><img src="<?php echo $v['image']?>" class="thumbnail" width="150" style="float: left; margin-right: 10px;"/></a>
                <span class="title"><a href="<?php echo base_url(), $category['slug'], '/', $sub['slug'], '/', $v['slug'];?>"><?php echo $v['title']?></a></span><br />
                <?php echo character_limiter($v['description'], 250)?>
                <div class="clearfix"></div>
            </div>
            <?php }?>
        </div>
    </div>
<?php } ?>